-- GENERATED SPELL FOR [Skullsplitter Mystic] --


function spell0_780(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_780', 3000, 1)
end

function spell1_780(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_780', 3000, 1)
end

function spell2_780(pUnit, Event) --@Quick Frost Ward,n/a--
pUnit:FullCastSpellOnTarget(4980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_780', 11500, 1)
end

function Sorts_780(pUnit, Event)
local choix_sorts_780 = math.random(0, 2)
if choix_sorts_780 == 0 then
pUnit:RegisterEvent('spell0_780', 1, 1)
end
if choix_sorts_780 == 1 then
pUnit:RegisterEvent('spell1_780', 1, 1)
end
if choix_sorts_780 == 2 then
pUnit:RegisterEvent('spell2_780', 1, 1)
end
end

function mob780_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_780', math.random(1500, 3000), 1)
end

function mob780_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob780_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob780_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(780, 1, 'mob780_Action')
RegisterUnitEvent(780, 2, 'mob780_Leave')
RegisterUnitEvent(780, 3, 'mob780_Kill')
RegisterUnitEvent(780, 4, 'mob780_Die')
